package com.yhy.wxzn.wcs.mapper;

import com.yhy.wxzn.wcs.entity.WcsFourWayTask;
import com.yhy.wxzn.wcs.entity.WcsTask;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: wcs_task
 * @Author: jeecg-boot
 * @Date:   2024-01-23
 * @Version: V1.0
 */
public interface WcsTaskMapper extends BaseMapper<WcsTask> {
    WcsTask getFirstCanExecuteTask(@Param("id") Integer id, @Param("taskStatus1") int taskStatus1, @Param("taskStatus2") int taskStatus2, @Param("taskStatus3") int taskStatus3,@Param("taskStatus4") int taskStatus4,@Param("rgvProgress") int rgvProgress);

    void assignTask(@Param("taskNo") Integer taskNo, @Param("id") Integer id);

    boolean updateRgvProgress(@Param("id")Integer id,@Param("rgvProgress")Integer rgvProgress);

    boolean updateTaskStatus(@Param("id")Integer id,@Param("taskStatus") int taskStatus);

    boolean updateTaskStatusByWmsId(@Param("id")String id,@Param("taskStatus") int taskStatus);
}
